package org.jmh.gift.client;

import org.jmh.gift.fallback.OrderClientFallback;
import org.jmh.gift.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "gift-order",fallback = OrderClientFallback.class)
public interface OrderClient {

    @GetMapping("/orderGift/parentOrderNo/{parentOrderNo}")
    AjaxResult getOrderByParentOrderNo(@PathVariable("parentOrderNo")String parentOrderNo);

}
